package com.controller.front_controller;


import com.mypg.Icon;
import com.service.IconService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@RequestMapping("/front_icon")
@Controller
public class FrontIconController {

    @Autowired
    IconService iconService;

    @RequestMapping("/icon_init.do")
    @ResponseBody
    public List<Icon> doIcon_init(String icon_class){
        return iconService.selectIconFor_icon_table_jsp(icon_class,-1,-1);
    }
}
